package com.yc.damai;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@SpringBootApplication
@MapperScan("com.yc.damai.mapper")
@EnableFeignClients
public class DamaiIndexConfig implements WebMvcConfigurer {

    public static void main(String[] args) {
        SpringApplication.run(DamaiIndexConfig.class, args);
    }

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/**")
                .addResourceLocations("file:D:/_文件柜/yc127_129/yc127_129" +
                        "/damai/damai-index/src/main/resources/static/");
    }
}
